package com.ruoyi.system.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.system.domain.InvoiceRecords;
import com.ruoyi.system.domain.InvoiceRecordsVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 开票明细Service接口
 * 
 * @author ruoyi
 * @date 2024-04-25
 */
public interface IInvoiceRecordsService 
{
    /**
     * 查询开票明细
     * 
     * @param id 开票明细主键
     * @return 开票明细
     */
    public InvoiceRecords selectInvoiceRecordsById(Long id);

    /**
     * 查询开票明细列表
     * 
     * @param invoiceRecords 开票明细
     * @return 开票明细集合
     */
    public List<InvoiceRecords> selectInvoiceRecordsList(InvoiceRecords invoiceRecords);

    public List<InvoiceRecordsVo> selectInvoiceProvideRecordsList(InvoiceRecords invoiceRecords);

    /**
     * 新增开票明细
     * 
     * @param invoiceRecords 开票明细
     * @return 结果
     */
    public int insertInvoiceRecords(InvoiceRecords invoiceRecords);

    /**
     * 修改开票明细
     * 
     * @param invoiceRecords 开票明细
     * @return 结果
     */
    public int updateInvoiceRecords(InvoiceRecords invoiceRecords);

    /**
     * 批量删除开票明细
     * 
     * @param ids 需要删除的开票明细主键集合
     * @return 结果
     */
    public int deleteInvoiceRecordsByIds(Long[] ids);

    /**
     * 删除开票明细信息
     * 
     * @param id 开票明细主键
     * @return 结果
     */
    public int deleteInvoiceRecordsById(Long id);

    public List<String> selectProductCode(@Param("list")List<String> productList);

    public List<Map<String,Object>>  listWebInfo(@Param("productName")String productName,
                                                 @Param("provide")String provide,
                                                 @Param("company")String company,
                                                 @Param("status")String status,@Param("productGroup")String productGroup,@Param("startTime") String startTime);

    public List<String> listProvide(@Param("provide")String provide);

    public List<Map<String,Object>> listSumMoney(@Param("provide")String provide,@Param("startTime")String startTime);

    public List<Map<String,Object>> listGroupMoney(@Param("provide")String provide,@Param("startTime")String startTime);

    public List<Map<String,Object>> listOtherMoney(@Param("provide")String provide,@Param("startTime")String startTime);

    public List<Map<String,Object>> listCompanyMoney(@Param("company")String company,@Param("startTime")String startTime);


    public Double  selectAllMoney(@Param("provide")String provide,@Param("startTime")String startTime);

    public Double  selectMoney(@Param("provide")String provide,@Param("startTime")String startTime);
    public Double  selectAllMoneyPrice(@Param("provide")String provide,@Param("startTime")String startTime);
    public Double  selectMoneyPriceForAudit(@Param("provide")String provide,@Param("startTime")String startTime);
    public Double  selectAllMoneyPriceForAudit(@Param("provide")String provide,@Param("startTime")String startTime);
    public Double  selectAllCount(@Param("provide")String provide,@Param("startTime")String startTime);

    public Double  selectSumProductMoney(@Param("provide")String provide,@Param("startTime")String startTime);

    public List<Map<String,Object>>  selectSumProfitMoney(@Param("startTime")String startTime);


    public List<Map<String,Object>>  listProvideInfo(@Param("productName")String productName,
                                                     @Param("provide")String provide,
                                                     @Param("company")String company,
                                                     @Param("status")String status,@Param("productGroup")String productGroup,@Param("startTime")String startTime);

    public Integer updateStatus(@Param("startTime")String startTime);

    public Integer deleteUpload(@Param("time")String time);




}
